package com.yuyang.common.constant;

/**
 * @author yu yang
 * @date 2023/1/2 -17:27
 */
public class WareConstants {
    public enum PurchaseStatusEnum{
        CREATED("新建",0),
        ASSIGNED("已分配",1),
        RECEIVED("已领取",2),
        FINISHED("已完成",3),
        HASERROR("有异常",4);
        private String msg;
        private Integer code;

        PurchaseStatusEnum(String msg, Integer code) {
            this.msg = msg;
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public Integer getCode() {
            return code;
        }
    }
    public enum PurchaseDetailStatusEnum{
        CREATED("新建",0),
        ASSIGNED("已分配",1),
        PURCHASING("正在采购",2),
        FINISHED("已完成",3),
        HASERROR("采购失败",4);
        private String msg;
        private Integer code;

        PurchaseDetailStatusEnum(String msg, Integer code) {
            this.msg = msg;
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public Integer getCode() {
            return code;
        }
    }

}
